package com.engineering.elink.service;

import java.io.IOException;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.engineering.elink.co.BaseCo;
import com.engineering.elink.co.FileCo;
import com.engineering.elink.domain.File;

public interface FileService {
	
	Map<String, Object> getFilesList(FileCo co);

	Map<String, Object> get(String fileId,String userId);

	Map<String, Object> getDownLoadRank(int count,int mold);

	Map<String, Object> getRelevant(String fileId,int count);

	Map<String, Object> getLike(String fileId,int count);

	Map<String, Object> getKeyWord(int count);

	Map<String, Object> getRelevantType(String fileId, int count);

	Map<String, Object> download(HttpServletResponse response,HttpServletRequest request,String userId,String fileId)throws IOException;

	Map<String, Object> add(File file,String dcIds);

	Map<String, Object> update(File file, String dcIds);

	Map<String, Object> getMyUploadFile(BaseCo co, String userId,String keyWord);

	Map<String, Object> getMyDownLoadFile(BaseCo co, String userId,String keyWord);

	Map<String, Object> getPlanList(int hierId, int gradeId);

	Map<String, Object> getDatabaseList(int scId);

	Map<String, Object> getFileBest(int count);

	Map<String, Object> getFileSystem(int count);

	Map<String, Object> getHotFile(int scId, int dcId, int count);

	Map<String, Object> getPreviewPngOfFile(String fileId, String userId,int type);

	Map<String, Object> getShare(String fileId);

	Map<String, Object> getFile(int count);

	Map<String, Object> getTest(String lujing);

	Map<String, Object> getTest2(String lujing);
}
